/**
 * 会员管理-审核
 * Created by TaoW on 2017/6/21.
 */
import Vue from 'vue'
import VueResource from 'vue-resource';
Vue.use(VueResource);

export default {
  /**
   *审核模块分页查询
   */
  auditQuery(pageSize,pageNum,queryData) {
    return Vue.http.post("/memberActivity/m/approvals/"+pageSize+'/'+pageNum, queryData);
  },

  /**
   *获取审批类型
   */
  getApprovalWay(){
    return Vue.http.get("/memberActivity/m/approvals/types");
  },
  getAllCountsByType(){
    return Vue.http.get("/memberActivity/m/approvals/getAllCountsByType");
  },
  /**
   *审批通过
   */
  approvalsAccept(logId){
    return Vue.http.post("/memberActivity/m/approvals/"+logId+"/accept");
  },

  /**
   *审批拒绝
   */
  approvalsReject(logId,refuseReason){
    return Vue.http.post("/memberActivity/m/approvals/"+logId+"/reject",refuseReason);
  },

  /**
   *获取能力评估表
   */
  getCapacityAssessmentForm(sheetType,memberId){
    return Vue.http.get("/assessSet/m/v1/getLastedAssessment/"+sheetType+'/'+memberId);
  },

  /**
   *获取个人资料
   */
  getPersonalInfo(memberId){
    return Vue.http.get("/member/m/v1/getMemberDetail/" + memberId);
  },
  /**
   * 体检报告
   */
  medicalReport(actId){
    return Vue.http.get("/memberInApply/m/examination/"+actId);
  }
}
